package designPattern.mvc
{
	import flash.events.KeyboardEvent;
	
	public class Control implements IControl
	{
		private var model:IModel;
		public function Control(m:IModel)
		{
			model = m;
		}
		
		public function keyPressHandler(evt:KeyboardEvent):void
		{
			model.setKey(evt.charCode);
		}
	}
}